<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <script src="https://cdn.jsdelivr.net/npm/vue@2.7.10/dist/vue.js"></script>
    <title>Document</title>
</head>
<body>
    <div id="app">
        <h1>复选框</h1>
        <input type="checkbox" value='刘备' v-model="user">刘备
        <input type="checkbox" value='张飞' v-model="user">张飞
        <input type="checkbox" value='关羽' v-model="user">关羽
        <input type="checkbox" value='马超' v-model="user">马超
        <input type="checkbox" value='黄忠' v-model="user">黄忠
        <br>
        桃园三结义的是：<input type="text" v-model="user" disabled/>
        <br>
        <span><h2>桃园三结义的是:{{user}}</h2> </span>
        <hr>
        <h1>单选框</h2>
        <input type="radio" value="男" v-model="sex">男
        <br>
        <input type="radio" value="女" v-model="sex">女
        <br>
        <span><h2>你的性别是:{{sex}}</h2> </span>
        <hr>
        <h1>下拉框</h2>
        <select v-model="game">
            <option value="LOL">LOL</option>
            <option value="GTA5">GTA5</option>
            <option value="CS:GO">CS:GO</option>
        </select>
        <span><h2>你最喜欢的游戏是:{{game}}</h2> </span>
     </div>
     
     <script>
        var app = new Vue({
            el:"#app",
            data:{
                user:[],
                sex:'', 
                game:''
            }
        });
     </script>
</body>
</html>